

using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using JYJ.AiYard.StationManagement.TbYardStations;

namespace JYJ.AiYard.EntityMapper.TbYardStations
{
    public class TbYardStationCfg : IEntityTypeConfiguration<TbYardStation>
    {
        public void Configure(EntityTypeBuilder<TbYardStation> builder)
        {

            builder.ToTable("Tb_YardStation", YoYoAbpefCoreConsts.SchemaNames.Dbo);

            
			builder.Property(a => a.Station_ID).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.Yard_ID).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.Yard_Name).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length512);
			builder.Property(a => a.ParkCount).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.ParkCardTypeId).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length512);
			builder.Property(a => a.GuestCount).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.GuestCardTypeId).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length512);
			builder.Property(a => a.MonthCount).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.MonthCardTypeId).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length512);
			builder.Property(a => a.BigSmall).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.Charge).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.TenantId).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.CreationTime).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.CreatorUserId).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.LastModifierUserId).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.LastModificationTime).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.IsDeleted).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.DeleterUserId).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.DeletionTime).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);


        }
    }
}


